(function($, doc) {
	$.init();
	function getQueryString(name) {
		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
		var r = window.location.search.substr(1).match(reg);
		if (r != null) return unescape(r[2]);
		return "";
	}
	document.getElementById('transfer_help').addEventListener("tap",function(){
					mui.openWindow({
						url: '../../pages/system/transfer_help.html',
						id: '../../pages/system/transfer_help.html'
			});
	});
	doc.getElementById("scan_address").addEventListener('tap', function() {
		plus.webview.open('../../pages/find/weep.html','weep');
		/*
		var targets = '../../pages/find/weep.html';
		mui.openWindow({
			url: targets,
			id: targets
		});*/
	});

	window.addEventListener('scanaddress', function(e) { //执行刷新
		var address = e.detail.result;
		doc.getElementById("to_address_id").value = address;
	});
}(mui, document));